<div class="center_content">
    <div class="center_title_bar">Login</div>
    <div class="prod_box_big">
        <div class="top_prod_box_big"></div>
        <div class="center_prod_box_big">
            <div class="register_form">
                <?php if (Yii::app()->user->hasFlash('login')): ?>
                    <div class="flash-success">
                        <?php echo Yii::app()->user->getFlash('login'); ?>
                    </div>
                <?php else: ?>
                    <?php
                    $form = $this->beginWidget('CActiveForm', array(
                        'id' => 'login-form',
                        'enableAjaxValidation' => true,
                    ));
                    ?>     
                    <div class="form_row">     
                        <strong>
                            <?php echo $form->labelEx($model, 'username', array('class' => 'register')); ?>
                        </strong>
                        <?php echo $form->textField($model, 'username', array('class' => 'register_input')) ?>    
                        <font color="red"> <?php echo $form->error($model, 'username'); ?> </font>
                    </div>
                    <div class="form_row">     
                        <strong>
                            <?php echo $form->labelEx($model, 'password', array('class' => 'register')); ?>
                        </strong>
                        <?php echo $form->passwordField($model, 'password', array('class' => 'register_input')) ?>    
                        <font color="red"> <?php echo $form->error($model, 'password'); ?> </font>
                    </div>
                    <br>
                    <div class="rememberMe">
                        <?php echo $form->checkBox($model, 'rememberMe'); ?>
                        <?php echo $form->label($model, Yii::t('login', 'Remember Me')); ?>
                        <?php echo $form->error($model, Yii::t('login', 'Remember Me')); ?>
                    </div>
                    <div align="center" class="form_row">
                        <?php echo CHtml::submitButton(Yii::t('login', 'Submit'), array("class" => "login")); ?>
                        <?php echo CHtml::resetButton(Yii::t('login', 'Reset'), array("class" => "login")); ?>
                    </div>

                    <?php $this->endWidget(); ?>
                <?php endif; ?>
            </div>
        </div>
        <div class="bottom_prod_box_big"></div>
    </div>
</div>